#include<stdio.h>
int main()
{
	int n,num,product=1;
	scanf("%d",&n);
	for(int i=0;i<n;i++) {
		scanf("%d",&num);
		if(num%2!=0)
		product*=num;
	}
	printf("%d\n",product);
	return 0;
}
